package com.infocollect.project.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.infocollect.project.api.entity.TappMenuEntity;
import com.infocollect.project.api.req.UserPowerMenuReq;

import java.util.List;

/**
 * (TappMenu)表数据库访问层
 *
 * @author makejava
 * @since 2019-12-25 10:32:29
 */
public interface TappMenuMapper extends BaseMapper<TappMenuEntity> {
    /**
     * 通过实体作为筛选条件查询
     *
     * @param tappMenu 实例对象
     * @return 对象列表
     */
    List<TappMenuEntity> queryAll(TappMenuEntity tappMenu);


    /**
     * 根据用户的名称，机构编码 部门编码 获取用户拥有的权限菜单
     *
     * @userparam
     * @return 对象列表
     */
    List<TappMenuEntity> QueryUserPowerMenu(UserPowerMenuReq userparam);
}